package br.com.sadim.hospital;

import java.net.MalformedURLException;
import java.net.URL;
import java.rmi.RemoteException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;

import com.drerp.integracao.service.Medico;
import com.drerp.integracao.service.MedicosService;
import com.drerp.integracao.service.MedicosServiceServiceLocator;
import com.drerp.integracao.service.MedicosServiceServiceSoapBindingStub;

public class main {
	/**
	 * @param args
	 * @throws MalformedURLException 
	 * @throws RemoteException 
	 */
	public static void main(String[] args) throws MalformedURLException, RemoteException {
		MedicosService ms = new MedicosServiceServiceSoapBindingStub(new URL("http://186.204.148.52:5574/RH/services/MedicosServicePort?wsdl"), new MedicosServiceServiceLocator());
		for (Medico m: ms.getMedicos()) {
			System.out.println(m.getNome() +" " +m.getId());
		}
	}
}
